//
//  ModelQues.h
//  解压缩&解析数据
//
//  Created by 盛超 on 2018/8/21.
//  Copyright © 2018年 盛超. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    LSListeningTest,
    LSReadingTest,
    LSFollowSpeakingTest,
} LSQuestionType;

@class ZSD;
@class AVdio;
@class Child;
@class Option;
@class Stem;

@interface ModelQues : NSObject

@property (nonatomic,copy) NSString *QuesID;
@property (nonatomic,copy) NSString *SubjectID;
@property (nonatomic,copy) NSString *StageNo;
@property (nonatomic,strong) NSArray <ZSD*>*ImportantZSD;
@property (nonatomic,strong) NSArray <ZSD*>*MainZSD;
@property (nonatomic,copy) NSString *TypeNo;
@property (nonatomic,copy) NSString *TypeName;
@property (nonatomic,copy) NSString *GenreID;
@property (nonatomic,copy) NSString *GenreName;
@property (nonatomic,copy) NSString *ImagePath;
@property (nonatomic,copy) NSString *TextPath;
@property (nonatomic,strong) NSArray <AVdio*>*AudioList;
@property (nonatomic,strong) NSArray <AVdio*>*VedioList;
@property (nonatomic,copy) NSString *QuesBody;
@property (nonatomic,strong) NSArray <Child*>*ChildList;
@property (nonatomic,assign) NSInteger TotalItemCount;
@property (nonatomic,assign) NSInteger TimeLong;
@property (nonatomic,assign) NSInteger HVal;

//xml转换的字典——>相应题型的model(适应听力，朗读，跟读)
- (instancetype)initWithDict:(NSDictionary*)dict Type:(LSQuestionType)type;

@end

@interface ZSD : NSObject

@property (nonatomic,copy) NSString *ZSDCode;
@property (nonatomic,copy) NSString *ZSDName;

@end

@interface AVdio : NSObject

@property (nonatomic,copy) NSString *AudioPath;
@property (nonatomic,copy) NSString *Article;
@property (nonatomic,copy) NSString *TextPath;

@end

@interface Child : NSObject

@property (nonatomic,assign) NSInteger ChildIndex;
@property (nonatomic,assign) NSInteger ChildAnswerType;
@property (nonatomic,strong) NSArray <Stem*>*ChildStemList;
@property (nonatomic,copy) NSString *ChildAsk;
@property (nonatomic,copy) NSString *ChildAnswer;
@property (nonatomic,copy) NSString *ChildAnalyze;
@property (nonatomic,copy) NSString *ChildStuAnswer;
@property (nonatomic,strong) NSArray <Option*>*ChildOptionList;

@end

@interface Stem : NSObject

@property (nonatomic,assign) NSInteger Position;//0-在问题之后；1-在问题之前
@property (nonatomic,copy) NSString *Text;

@end

@interface Option : NSObject

@property (nonatomic,copy) NSString *OptionIndex;
@property (nonatomic,copy) NSString *OptionContent;

@end
